<?php
/**
 * sqc @小T科技 2018.03.06
 *
 *
 */
namespace App\Logic;

use Illuminate\Http\Request;
use App\Http\Requests;
use App\Http\Resources\School as SchoolResource;
use App\Models\School;

class SchoolLogic
{
    
    
    public function __construct()
    {
        
    }
    
    // 分页获取商品列表
    static public function getSchoolList($where, $page = 1, $limit = 20)
    {
        return SchoolResource::collection(School::where($where)->orderBy('id', 'desc')->paginate($limit))->additional(['code' =>200,'status' => 'success']);
    }
    
    
    
}
